import request from '@/utils/request'

// 查询教师管理列表
export function listTeacherManagement(query) {
  return request({
    url: '/teacher/teacherManagement/list',
    method: 'get',
    params: query
  })
}


// 查询教师管理详细
export function getTeacherManagement(id) {
  return request({
    url: '/teacher/teacherManagement/' + id,
    method: 'get'
  })
}

export function addTeacher(from) {
  return request({
    url: '/teacher/teacherManagement',
    method: 'post',
    data: from
  })
}

// 新增教师管理
export function addTeacherManagement(data) {
  return request({
    url: '/teacher/teacherManagement/addTeacher',
    method: 'post',
    data: data
  })
}

// 修改教师管理
export function updateTeacherManagement(data) {
  return request({
    url: '/teacher/teacherManagement',
    method: 'put',
    data: data
  })
}

// 删除教师管理
export function delTeacherManagement(id) {
  return request({
    url: '/teacher/teacherManagement/' + id,
    method: 'delete'
  })
}
//获取未绑定的用户名
export function getNoBindUserList() {
  return request({
    url: '/teacher/teacherManagement/noBindUserList',
    method: 'get'
  })
}

